<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0062)http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html -->
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><META http-equiv="Content-Type" content="text/html; charset=UTF-8">

<TITLE>自己写的代码生成器ltscode2.0 - lts8989 - 博客园</TITLE><META name="keywords" content="C#,代码生成器,自定义模板,ltscode">
<META name="description" content="可自定义模板的代码生成器，通过XML与XSL生成临时代码，在通过您自定义的Dll文件处理后生成代码。可扩展性强">
<LINK type="text/css" rel="stylesheet" href="./自己写的代码生成器ltscode2.0 - lts8989 - 博客园_files/common.css">
<LINK id="MainCss" type="text/css" rel="stylesheet" href="./自己写的代码生成器ltscode2.0 - lts8989 - 博客园_files/style.css">
<LINK type="text/css" rel="stylesheet" href="./自己写的代码生成器ltscode2.0 - lts8989 - 博客园_files/common2.css">
<LINK type="text/css" rel="stylesheet" href="./自己写的代码生成器ltscode2.0 - lts8989 - 博客园_files/shCore.css">
<LINK type="text/css" rel="stylesheet" href="./自己写的代码生成器ltscode2.0 - lts8989 - 博客园_files/shThemeDefault.css">
<LINK title="RSS" type="application/rss+xml" rel="alternate" href="http://www.cnblogs.com/lts8989/rss">
<LINK title="RSD" type="application/rsd+xml" rel="EditURI" href="http://www.cnblogs.com/lts8989/rsd.xml"> 
<SCRIPT src="./自己写的代码生成器ltscode2.0 - lts8989 - 博客园_files/jquery.js" type="text/javascript"></SCRIPT>  
<SCRIPT src="./自己写的代码生成器ltscode2.0 - lts8989 - 博客园_files/common.js" type="text/javascript"></SCRIPT>
<SCRIPT src="./自己写的代码生成器ltscode2.0 - lts8989 - 博客园_files/jquery.json-2.2.min.js" type="text/javascript"></SCRIPT>
</HEAD><BODY>
    <FORM name="Form1" method="post" action="./自己写的代码生成器ltscode2.0 - lts8989 - 博客园_files/自己写的代码生成器ltscode2.0 - lts8989 - 博客园.htm" id="Form1">
<DIV>
<INPUT type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="">
<INPUT type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="">
<INPUT type="hidden" name="__VIEWSTATE" id="
__VIEWSTATE" value="">
</DIV>

<SCRIPT type="text/javascript">
//<![CDATA[
var theForm = document.forms['Form1'];
if (!theForm) {
    theForm = document.Form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</SCRIPT>


        
<!--done-->
<DIV id="home" class="hui-d-custom"> 
<DIV id="header" class="hui-d3">
	<DIV id="blogTitle">
		
<!--done-->
<H1><A id="Header1_HeaderTitle" class="headermaintitle" href="http://www.cnblogs.com/lts8989/">lts8989</A></H1>
<H2></H2>



		
	</DIV><!--end: blogTitle 博客的标题和副标题 -->

	<DIV id="navigator">
	<DIV class="hui-d2"> 
		
<!--done-->
<UL id="navList">
	<LI><A id="MyLinks1_HomeLink" class="menu" href="http://www.cnblogs.com/">博客园</A></LI>
	<LI><A id="MyLinks1_MyHomeLink" class="menu" href="http://www.cnblogs.com/lts8989/">首页</A></LI>
	<LI><A href="http://space.cnblogs.com/" cssclass="menu">社区</A></LI>
	<LI><A id="MyLinks1_NewPostLink" class="menu" href="http://www.cnblogs.com/lts8989/admin/EditPosts.aspx?opt=1">新随笔</A></LI>
	<LI><A id="MyLinks1_ContactLink" accesskey="9" class="menu" href="http://space.cnblogs.com/msg/send/%e6%9d%8e%e5%a4%a9%e6%97%b6">联系</A></LI>
	<LI><A id="MyLinks1_Admin" class="menu" href="http://www.cnblogs.com/lts8989/admin/EditPosts.aspx">管理</A></LI>
	<LI><A id="MyLinks1_Syndication" class="menu" href="http://www.cnblogs.com/lts8989/rss">订阅</A>
	<A id="MyLinks1_XMLLink" class="aHeaderXML" href="http://www.cnblogs.com/lts8989/rss"><IMG src="./自己写的代码生成器ltscode2.0 - lts8989 - 博客园_files/xml.gif" alt="订阅" style="border-width:0px;"></A></LI>
</UL>


		<DIV class="blogStats">
			
			
<!--done-->
随笔- 6&nbsp;
文章- 0&nbsp;
评论- 58&nbsp;

			
		</DIV><!--end: blogStats -->
	</DIV>
</DIV><!--end: navigator 博客导航栏 -->

</DIV><!--end: header -->


<DIV class="hui-d3 hui-t5" id="body">
	<DIV class="hui-main"> 
		<DIV class="hui-b"> 
		
					
<!--done-->
<DIV id="topics">
	<DIV class="post">
		<H1 class="h1PostTitle">
			<A id="ctl04_TitleUrl" class="postTitle2" href="./自己写的代码生成器ltscode2.0 - lts8989 - 博客园_files/自己写的代码生成器ltscode2.0 - lts8989 - 博客园.htm">自己写的代码生成器ltscode2.0</A>
		</H1>
		<DIV class="postBody">
			<P>&nbsp;&nbsp;&nbsp; ltscode代码生成器，本人DIY的。</P>
<P>&nbsp;&nbsp;&nbsp; 写了一些常规模式的网站后发现代码生成器的用处，但使用网上的代码生成器生成的代码大多不符合我的书写格式，而那些代码生成器的自定义模板功能大多没有（也许是我笨，没找到），遂DIY。</P>
<P>&nbsp;&nbsp;&nbsp; 1、使用方法：打开代码生成器&nbsp; ltscodenew.exe。首先自动进入连接数据库窗口，如下图所示</P>
<P>&nbsp;</P>
<DIV align="center"><IMG border="0" width="519" src="./自己写的代码生成器ltscode2.0 - lts8989 - 博客园_files/login.GIF" height="428"></DIV>
<P>&nbsp;</P>
<P>选择相依的服务器名（mssql的服务器名或ip地址）和身份认证方式，点击“测试连接”按钮，如正确登陆mssql服务器，在“数据库”下拉列表中选择需要的数据库。点击“确定”按钮进入程序主界面。</P>
<P>&nbsp;</P>
<P align="center"><IMG border="0" width="891" src="./自己写的代码生成器ltscode2.0 - lts8989 - 博客园_files/main.GIF" height="500"></P>
<P align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;从左边树的“表”节点中右键单击某一个表，右键菜单为软件所加载的所有代码自定义生成模板。我已经为制作好了三个模板（Bll、model、proc），模板的制作过程下面会有介绍。选择某个模板后会按照表结构生成相应的c#代码，显示在右边的输入框中。</P>
<P align="left">点击“连接数据库”按钮将会进入刚才的连接数据库窗口重新连接其他数据库。“刷新”按钮用来刷新左边树形结构显示的数据库结构。“输出所有代码到文件夹”按钮是将所有的表分别套用所有的模板，生成代码到用户选定的文件夹。</P>
<P align="left">2、模板制作方法：（以测试表users和model模板为例介绍整个生成过程）</P>
<P align="left">&nbsp; （1）、有表结构生成XML。</P>
<P align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stu表结构：userid int、username varchar（15）、userpwd varchar（15）</P>
<P align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 生成的XML如下：</P>
<P align="left">&lt;?xml version="1.0" encoding="gb2312"?&gt;<BR>&lt;root&gt;<BR>&nbsp; &lt;table&gt;users&lt;/table&gt;<BR>&nbsp; &lt;column&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;colname&gt;userid&lt;/colname&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;typename&gt;int&lt;/typename&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;length&gt;4&lt;/length&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;isnullable&gt;0&lt;/isnullable&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;description&gt;&lt;/description&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;defaultvalue&gt;&lt;/defaultvalue&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;primarykey&gt;1&lt;/primarykey&gt;<BR>&nbsp; &lt;/column&gt;<BR>&nbsp; &lt;column&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;colname&gt;username&lt;/colname&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;typename&gt;varchar&lt;/typename&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;length&gt;15&lt;/length&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;isnullable&gt;0&lt;/isnullable&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;description&gt;&lt;/description&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;defaultvalue&gt;&lt;/defaultvalue&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;primarykey&gt;0&lt;/primarykey&gt;<BR>&nbsp; &lt;/column&gt;<BR>&nbsp; &lt;column&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;colname&gt;userpwd&lt;/colname&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;typename&gt;varchar&lt;/typename&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;length&gt;15&lt;/length&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;isnullable&gt;0&lt;/isnullable&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;description&gt;&lt;/description&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;defaultvalue&gt;&lt;/defaultvalue&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;primarykey&gt;0&lt;/primarykey&gt;<BR>&nbsp; &lt;/column&gt;<BR>&lt;/root&gt;</P>
<P align="left">&nbsp; （2）、通过XML与模板XSL文件生成临时代码字符串。</P>
<P align="left">请将你自定义的XSL文件放在软件目录下的“Template”目录下</P>
<P align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; model的XSL文件如下：</P>
<P>&lt;?xml version="1.0" encoding="gb2312"?&gt;<BR>&lt;xsl:stylesheet version="1.0"<BR>xmlns:xsl="<A target="_blank" href="http://www.w3.org/1999/XSL/Transform">http://www.w3.org/1999/XSL/Transform</A>"&gt;</P>
<P>&nbsp; &lt;xsl:template match="/"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsl:variable name="tablename" &gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsl:for-each select="root"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsl:value-of select="table"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xsl:for-each&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xsl:variable&gt;<BR>using System;<BR>namespace Model<BR>{<BR>&nbsp; /// &lt;summary&gt;<BR>&nbsp; /// 实体类&lt;xsl:copy-of select="$tablename" /&gt; 。(属性说明自动提取数据库字段的描述信息)<BR>&nbsp; ///&lt;/summary&gt;<BR>&nbsp; [Serializable]<BR>&nbsp; public class &lt;xsl:copy-of select="$tablename" /&gt;<BR>&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public &lt;xsl:copy-of select="$tablename" /&gt;()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #region Model<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsl:for-each select="root/column"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private &lt;xsl:value-of select="typename"/&gt; _&lt;xsl:value-of select="colname"/&gt;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xsl:for-each&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsl:for-each select="root/column"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /// &lt;summary&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /// &lt;xsl:value-of select="description"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /// &lt;/summary&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public &lt;xsl:value-of select="typename"/&gt;<BR>&lt;xsl:text&gt; &lt;/xsl:text&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsl:value-of select="colname"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set {_&lt;xsl:value-of select="colname"/&gt;=value;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; get {return _&lt;xsl:value-of select="colname"/&gt;;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xsl:for-each&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #endregion Model</P>
<P>&nbsp;&nbsp;&nbsp; }<BR>}<BR>&nbsp; &lt;/xsl:template&gt;</P>
<P>&lt;/xsl:stylesheet&gt;</P>
<P align="left">&nbsp;</P>
<P align="left">以上两个步骤的操作已经集成在LtsBll.dll文件的Tools.CreateCodeByXml函数中。</P>
<P align="left">&nbsp;&nbsp;（3）、再使用自定义的dll文件加工临时代码，最后生成可使用的代码。</P>
<P align="left">自定义的dll文件中的加工临时代码的函数同一使用函数名CreateCode。model.cs代码如下：</P>
<P>using System;<BR>using System.Collections.Generic;<BR>using System.Linq;<BR>using System.Text;<BR>using ltsmodel;<BR>using LtsBll;</P>
<P><BR>namespace model<BR>{<BR>&nbsp;&nbsp;&nbsp; public class model<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /// &lt;summary&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /// <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /// &lt;/summary&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /// &lt;param name="tableName"&gt;表名&lt;/param&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public string CreateCode(string tableName)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</P>
<P>　　　　//通过表名和xsl生成临时代码<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string StrReturn = Tools.CreateCodeByXml(tableName, "model.xsl");</P>
<P>　　　　//获取sql字段类型和C#变量类型对照表<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; List&lt;Ltsmodel&gt; txtmodel= Tools.GetDbToCS();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//将临时代码中的sql字段类型替换成C#变量类型<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; StrReturn=Tools.StringReplace(StrReturn, txtmodel);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return StrReturn;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; }<BR>}<BR>需要注意：LtsBll.dll与ltsmodel.dll在软件目录下。制作好自己的dll文件后可直接拷贝到软件目录下的“dll”文件夹下或者在软件中右击表的菜单中选择“添加模板dll”。如果您编写的dll文件没有错误但是加载后报错找不到相应的函数，可将LtsBll.dll文件复制到dll目录下，用您的模板生成一遍，关闭软件删除dll目录下的LtsBll.dll文件即可。对于此错误，我一直找不到原因，希望热心网友能解决此问题。</P>
<P>&nbsp;</P>
<P>3、写在最后：以前还是学生的时候感觉《图书馆管理系统》经常用到，技术简单，所以在网上一搜一大堆；现在工作了感觉类似CMS的系统做多了代码生成器会经常用到，而且在网上一搜一大堆，所以得出结论：代码生成器的技术很简单。</P>
<P align="left">&nbsp;</P>
<P align="left">可执行文件：<A target="_blank" href="http://files.cnblogs.com/lts8989/ltscode.rar">/Files/lts8989/ltscode.rar</A></P>
<P align="left">源码：<A target="_blank" href="http://files.cnblogs.com/lts8989/ltscodenew_Source.rar">/Files/lts8989/ltscodenew_Source.rar</A>&nbsp; 源码请使用vs2008打开</P><DIV id="EntryTag">Tag标签: <A href="http://www.cnblogs.com/lts8989/tag/C%23/">C#</A>,<A href="http://www.cnblogs.com/lts8989/tag/%e4%bb%a3%e7%a0%81%e7%94%9f%e6%88%90%e5%99%a8/">代码生成器</A>,<A href="http://www.cnblogs.com/lts8989/tag/%e8%87%aa%e5%ae%9a%e4%b9%89%e6%a8%a1%e6%9d%bf/">自定义模板</A>,<A href="http://www.cnblogs.com/lts8989/tag/ltscode/">ltscode</A></DIV>
<DIV id="c_jquery_test" style="display:none"></DIV>
<SCRIPT type="text/javascript">
if ($ != jQuery) {
	$ = jQuery.noConflict();
}
</SCRIPT>
<DIV id="digg_block">
<DIV id="author_profile">
<DIV class="author_profile_info">
<A href="http://home.cnblogs.com/lts8989/" target="_blank"><IMG src="./自己写的代码生成器ltscode2.0 - lts8989 - 博客园_files/u40803.jpg" class="author_avatar" alt=""></A>
<DIV class="author_profile_info">
<A href="http://home.cnblogs.com/lts8989/" target="_blank">李天时</A><BR>
关注 - 1<BR>
粉丝 - 1<BR>
</DIV>
</DIV>
<DIV class="clear"></DIV>

<DIV id="author_profile_follow"> <A href="javascript:void(0);" onclick="login();return false;">关注博主</A></DIV>
</DIV>
<DIV id="div_digg">										
	<DIV class="diggit" onclick="DiggIt(1658763,44382,1)"> 
		<SPAN class="diggnum" id="digg_count_1658763">2</SPAN>
	</DIV>
	<DIV class="buryit" onclick="DiggIt(1658763,44382,2)"> 
		<SPAN class="burynum" id="bury_count_1658763">1</SPAN>
	</DIV>
	<DIV class="clear"></DIV>
	<SPAN style="display:none" id="span_isdigged_1658763">0</SPAN>	
	<DIV class="diggword" id="digg_word_1658763">(请您对文章做出评价)</DIV>	
</DIV>
</DIV>
<DIV class="clear"></DIV>
<DIV id="post_next_prev">
<A href="http://www.cnblogs.com/lts8989/archive/2009/11/17/1604726.html">« </A> 上一篇：<A href="http://www.cnblogs.com/lts8989/archive/2009/11/17/1604726.html" title="发布于2009-11-17 16:33">日历JS代码</A><BR>
<A href="http://www.cnblogs.com/lts8989/archive/2010/04/08/1707045.html">» </A> 下一篇：<A href="http://www.cnblogs.com/lts8989/archive/2010/04/08/1707045.html" title="发布于2010-04-08 11:48">2010面试攻略</A><BR>
</DIV>
<SCRIPT type="text/javascript" src="./自己写的代码生成器ltscode2.0 - lts8989 - 博客园_files/google_service.js"></SCRIPT>
<SCRIPT type="text/javascript">
    var c_enable_dfp = true;
    if (navigator.userAgent.indexOf("Chrome/6.0.401.1") > 0) {
        c_enable_dfp = false;
    }
    if (c_enable_dfp) {
        try {
            GS_googleAddAdSenseService("ca-pub-4210569241504288");
            GS_googleEnableAllServices();
        }
        catch (e) { }
    }
</SCRIPT><SCRIPT src="./自己写的代码生成器ltscode2.0 - lts8989 - 博客园_files/google_ads.js"></SCRIPT>
<SCRIPT type="text/javascript">
    if (c_enable_dfp) {
        try {
            GA_googleAddSlot("ca-pub-4210569241504288", "cnblogs_blogpost_body");
            GA_googleAddSlot("ca-pub-4210569241504288", "cnblogs_commentbox_up");
            GA_googleAddSlot("ca-pub-4210569241504288", "cnblogs_blogpost_bottom");
            GA_googleAddSlot("ca-pub-4210569241504288", "cnblogs_blogpost_bottom1");
        }
        catch (e) { }
    }
</SCRIPT>
<SCRIPT type="text/javascript">
    if (c_enable_dfp) {
        try {
            GA_googleFetchAds();
        } catch (e) { }
    }
</SCRIPT>
<SCRIPT type="text/javascript">
	var blog_ad_has_shown = false;
	var cb_c_u_id = '';
	var cb_blog_uid = '35f4460b-63cf-dd11-9e4d-001cf0cd104b';
</SCRIPT>




		</DIV>
		<DIV class="postDesc">posted @ 2010-01-28 21:49 <A href="http://www.cnblogs.com/lts8989/">李天时</A> 阅读(1596) <A href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#commentform">评论(13)</A>  <A href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#" onclick="open_link(&#39;http://www.cnblogs.com/lts8989/admin/EditPosts.aspx?postid=1658763&#39;)">编辑</A> <A href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#" onclick="AddToWz(1658763);return false;">收藏</A>  </DIV>
	</DIV>
	<IMG src="./自己写的代码生成器ltscode2.0 - lts8989 - 博客园_files/1658763.html" width="1" height="1">
	
<!--
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
<rdf:Description
rdf:about="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html"
dc:identifier="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html"
dc:title=""
trackback:ping="http://www.cnblogs.com/lts8989/services/trackbacks/1658763.aspx" />
</rdf:RDF>
-->

</DIV><!--end: topics 文章、评论容器-->
<A name="pagedcomment"></A>
<!--done-->
<BR>
<DIV class="feedback_area_title">发表评论</DIV>
<DIV class="feedbackNoItems"><SPAN id="span_comment_maxid" style="display:none">1796631</SPAN></DIV>
	

		<DIV class="feedbackItem">
			<DIV class="feedbackListSubtitle">
				<DIV class="feedbackManage">
					　<A onclick="ReplyComment(&quot;麒麟&quot;,1756434,&quot;L4HtxFlpEEURjgn+8SshpvVG8ft4fNweffxJ0VBoCeCJ2JjysCLJpQ==&quot;)" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#commentform">回复</A>　<A onclick="QuoteComment(1756434,&quot;L4HtxFlpEEURjgn+8SshpvVG8ft4fNweffxJ0VBoCeCJ2JjysCLJpQ==&quot;)" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#commentform">引用</A>　<A title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e9%ba%92%e9%ba%9f" target="_blank">查看</A>　<A id="Comments1_CommentList_ctl00_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl00$DeleteLink','')"></A>&nbsp;&nbsp;<A id="Comments1_CommentList_ctl00_EditLink" causesvalidation="False"></A>
				</DIV>
				<A href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#1756434">#1楼</A><A name="1756434" id="comment_anchor_1756434"></A>2010-01-28 22:11 | <A id="Comments1_CommentList_ctl00_NameLink" href="http://www.cnblogs.com/zhuqil/" target="_blank">麒麟</A>&nbsp;<A href="http://space.cnblogs.com/msg/send/%e9%ba%92%e9%ba%9f" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A>
			</DIV>
			<DIV class="feedbackCon">
				<SPAN id="comment_body_1756434" class="blog_comment_body">你是不是李天平的兄弟呀  呵呵<BR>我的代码生成器也是xml+xslt做的，推荐一下。</SPAN><BR>
			</DIV>
		</DIV>
	
		<DIV class="feedbackItem">
			<DIV class="feedbackListSubtitle">
				<DIV class="feedbackManage">
					　<A onclick="ReplyComment(&quot;活雷锋&quot;,1756462,&quot;994LOjwF7BYnQxfhI4GQHYhwKYevv3yhr4peZPBQyLARuMXp+24fxQ==&quot;)" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#commentform">回复</A>　<A onclick="QuoteComment(1756462,&quot;994LOjwF7BYnQxfhI4GQHYhwKYevv3yhr4peZPBQyLARuMXp+24fxQ==&quot;)" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#commentform">引用</A>　<A title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e6%b4%bb%e9%9b%b7%e9%94%8b" target="_blank">查看</A>　<A id="Comments1_CommentList_ctl01_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl01$DeleteLink','')"></A>&nbsp;&nbsp;<A id="Comments1_CommentList_ctl01_EditLink" causesvalidation="False"></A>
				</DIV>
				<A href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#1756462">#2楼</A><A name="1756462" id="comment_anchor_1756462"></A>2010-01-28 22:49 | <A id="Comments1_CommentList_ctl01_NameLink" href="http://www.cnblogs.com/mmmjiang13/" target="_blank">活雷锋</A>&nbsp;<A href="http://space.cnblogs.com/msg/send/%e6%b4%bb%e9%9b%b7%e9%94%8b" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A>
			</DIV>
			<DIV class="feedbackCon">
				<SPAN id="comment_body_1756462" class="blog_comment_body">同问 你是李天平的弟弟吧？<BR></SPAN><BR>
			</DIV>
		</DIV>
	
		<DIV class="feedbackItem">
			<DIV class="feedbackListSubtitle">
				<DIV class="feedbackManage">
					　<A onclick="ReplyComment(&quot;李天时&quot;,1756463,&quot;qccN+i2WxmbvBuCANDeM1kw+xk7cYrZbjuphcoWZjVtsc+SyQsgFlA==&quot;)" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#commentform">回复</A>　<A onclick="QuoteComment(1756463,&quot;qccN+i2WxmbvBuCANDeM1kw+xk7cYrZbjuphcoWZjVtsc+SyQsgFlA==&quot;)" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#commentform">引用</A>　<A title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e6%9d%8e%e5%a4%a9%e6%97%b6" target="_blank">查看</A>　<A id="Comments1_CommentList_ctl02_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl02$DeleteLink','')"></A>&nbsp;&nbsp;<A id="Comments1_CommentList_ctl02_EditLink" causesvalidation="False"></A>
				</DIV>
				<A href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#1756463">#3楼</A><A name="1756463" id="comment_anchor_1756463"></A>[<SPAN class="louzhu">楼主</SPAN>]2010-01-28 22:50 | <A id="Comments1_CommentList_ctl02_NameLink" href="http://www.cnblogs.com/lts8989/" target="_blank">李天时</A>&nbsp;<A href="http://space.cnblogs.com/msg/send/%e6%9d%8e%e5%a4%a9%e6%97%b6" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A>
			</DIV>
			<DIV class="feedbackCon">
				<SPAN id="comment_body_1756463" class="blog_comment_body"><A href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#1756462" title="查看所回复的评论">@</A>活雷锋<BR>那只是机缘巧合，李天平是我崇拜的前辈。</SPAN><BR>
			</DIV>
		</DIV>
	
		<DIV class="feedbackItem">
			<DIV class="feedbackListSubtitle">
				<DIV class="feedbackManage">
					　<A onclick="ReplyComment(&quot;李天时&quot;,1756464,&quot;qccN+i2WxmbvBuCANDeM1kw+xk7cYrZbjuphcoWZjVtsc+SyQsgFlA==&quot;)" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#commentform">回复</A>　<A onclick="QuoteComment(1756464,&quot;qccN+i2WxmbvBuCANDeM1kw+xk7cYrZbjuphcoWZjVtsc+SyQsgFlA==&quot;)" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#commentform">引用</A>　<A title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e6%9d%8e%e5%a4%a9%e6%97%b6" target="_blank">查看</A>　<A id="Comments1_CommentList_ctl03_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl03$DeleteLink','')"></A>&nbsp;&nbsp;<A id="Comments1_CommentList_ctl03_EditLink" causesvalidation="False"></A>
				</DIV>
				<A href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#1756464">#4楼</A><A name="1756464" id="comment_anchor_1756464"></A>[<SPAN class="louzhu">楼主</SPAN>]2010-01-28 22:52 | <A id="Comments1_CommentList_ctl03_NameLink" href="http://www.cnblogs.com/lts8989/" target="_blank">李天时</A>&nbsp;<A href="http://space.cnblogs.com/msg/send/%e6%9d%8e%e5%a4%a9%e6%97%b6" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A>
			</DIV>
			<DIV class="feedbackCon">
				<SPAN id="comment_body_1756464" class="blog_comment_body"><A href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#1756434" title="查看所回复的评论">@</A>麒麟<BR>在你的博客里没找到你的代码生成器，分享让大家学习一下</SPAN><BR>
			</DIV>
		</DIV>
	
		<DIV class="feedbackItem">
			<DIV class="feedbackListSubtitle">
				<DIV class="feedbackManage">
					　<A onclick="ReplyComment(&quot;James Li&quot;,1756623,&quot;B0zmRPHMr61Vk43YfTgOoe65SaI6TqjeMpM1p+RDwFbn0ztu7rXyJg==&quot;)" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#commentform">回复</A>　<A onclick="QuoteComment(1756623,&quot;B0zmRPHMr61Vk43YfTgOoe65SaI6TqjeMpM1p+RDwFbn0ztu7rXyJg==&quot;)" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#commentform">引用</A>　<A title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=James+Li" target="_blank">查看</A>　<A id="Comments1_CommentList_ctl04_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl04$DeleteLink','')"></A>&nbsp;&nbsp;<A id="Comments1_CommentList_ctl04_EditLink" causesvalidation="False"></A>
				</DIV>
				<A href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#1756623">#5楼</A><A name="1756623" id="comment_anchor_1756623"></A>2010-01-29 09:01 | <A id="Comments1_CommentList_ctl04_NameLink" href="http://www.cnblogs.com/JamesLi2015/" target="_blank">James Li</A>&nbsp;<A href="http://space.cnblogs.com/msg/send/James+Li" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A>
			</DIV>
			<DIV class="feedbackCon">
				<SPAN id="comment_body_1756623" class="blog_comment_body">代码生成器如果与固定的架构结合起来，作为一个固定模式的开发的一个小工具，相信可以极大的提高生产率。<BR><BR>从设计实体层，数据访问层，业务接口层，界面层，代码生成器都提供工具帮忙解决，这样的效率改善是很大的。<BR></SPAN><BR>
			</DIV>
		</DIV>
	
		<DIV class="feedbackItem">
			<DIV class="feedbackListSubtitle">
				<DIV class="feedbackManage">
					　<A onclick="ReplyComment(&quot;李天时&quot;,1756652,&quot;qccN+i2WxmbvBuCANDeM1kw+xk7cYrZbjuphcoWZjVtsc+SyQsgFlA==&quot;)" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#commentform">回复</A>　<A onclick="QuoteComment(1756652,&quot;qccN+i2WxmbvBuCANDeM1kw+xk7cYrZbjuphcoWZjVtsc+SyQsgFlA==&quot;)" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#commentform">引用</A>　<A title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e6%9d%8e%e5%a4%a9%e6%97%b6" target="_blank">查看</A>　<A id="Comments1_CommentList_ctl05_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl05$DeleteLink','')"></A>&nbsp;&nbsp;<A id="Comments1_CommentList_ctl05_EditLink" causesvalidation="False"></A>
				</DIV>
				<A href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#1756652">#6楼</A><A name="1756652" id="comment_anchor_1756652"></A>[<SPAN class="louzhu">楼主</SPAN>]2010-01-29 09:14 | <A id="Comments1_CommentList_ctl05_NameLink" href="http://www.cnblogs.com/lts8989/" target="_blank">李天时</A>&nbsp;<A href="http://space.cnblogs.com/msg/send/%e6%9d%8e%e5%a4%a9%e6%97%b6" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A>
			</DIV>
			<DIV class="feedbackCon">
				<SPAN id="comment_body_1756652" class="blog_comment_body"><A href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#1756623" title="查看所回复的评论">@</A>James Li<BR>有道理</SPAN><BR>
			</DIV>
		</DIV>
	
		<DIV class="feedbackItem">
			<DIV class="feedbackListSubtitle">
				<DIV class="feedbackManage">
					　<A onclick="ReplyComment(&quot;无常&quot;,1757026,&quot;wsk70pbiUp1G8wkynyEsPZW5aDqmYv8TEKk9JoJZ2YYeUGDvpMNiAQ==&quot;)" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#commentform">回复</A>　<A onclick="QuoteComment(1757026,&quot;wsk70pbiUp1G8wkynyEsPZW5aDqmYv8TEKk9JoJZ2YYeUGDvpMNiAQ==&quot;)" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#commentform">引用</A>　<A title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e6%97%a0%e5%b8%b8" target="_blank">查看</A>　<A id="Comments1_CommentList_ctl06_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl06$DeleteLink','')"></A>&nbsp;&nbsp;<A id="Comments1_CommentList_ctl06_EditLink" causesvalidation="False"></A>
				</DIV>
				<A href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#1757026">#7楼</A><A name="1757026" id="comment_anchor_1757026"></A>2010-01-29 15:22 | <A id="Comments1_CommentList_ctl06_NameLink" href="http://www.cnblogs.com/wuchang/" target="_blank">无常</A>&nbsp;<A href="http://space.cnblogs.com/msg/send/%e6%97%a0%e5%b8%b8" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A>
			</DIV>
			<DIV class="feedbackCon">
				<SPAN id="comment_body_1757026" class="blog_comment_body"><A href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#1756652" title="查看所回复的评论">@</A>李天时<BR>你们家庭传承呀，都喜欢搞代码生成器。 :)<BR><BR>用T4生成不是很方便么</SPAN><BR>
			</DIV>
		</DIV>
	
		<DIV class="feedbackItem">
			<DIV class="feedbackListSubtitle">
				<DIV class="feedbackManage">
					　<A onclick="ReplyComment(&quot;JimHappy#真嗨皮#郑海滨&quot;,1757301,&quot;9IB4HOXohsSCak0of6v/K2kzaMYQy3aoQC/Sm3A2VPRdN3Y6ZcDaMQ==&quot;)" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#commentform">回复</A>　<A onclick="QuoteComment(1757301,&quot;9IB4HOXohsSCak0of6v/K2kzaMYQy3aoQC/Sm3A2VPRdN3Y6ZcDaMQ==&quot;)" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#commentform">引用</A>　<A title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=JimHappy%23%e7%9c%9f%e5%97%a8%e7%9a%ae%23%e9%83%91%e6%b5%b7%e6%bb%a8" target="_blank">查看</A>　<A id="Comments1_CommentList_ctl07_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl07$DeleteLink','')"></A>&nbsp;&nbsp;<A id="Comments1_CommentList_ctl07_EditLink" causesvalidation="False"></A>
				</DIV>
				<A href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#1757301">#8楼</A><A name="1757301" id="comment_anchor_1757301"></A>2010-01-30 09:40 | <A id="Comments1_CommentList_ctl07_NameLink" href="http://www.cnblogs.com/JimHappy/" target="_blank">JimHappy#真嗨皮#郑海滨</A>&nbsp;<A href="http://space.cnblogs.com/msg/send/JimHappy%23%e7%9c%9f%e5%97%a8%e7%9a%ae%23%e9%83%91%e6%b5%b7%e6%bb%a8" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A>
			</DIV>
			<DIV class="feedbackCon">
				<SPAN id="comment_body_1757301" class="blog_comment_body">我也贡献一个：<BR><A href="http://www.cnblogs.com/JimHappy/archive/2009/10/27/1590729.html" target="_blank">http://www.cnblogs.com/JimHappy/archive/2009/10/27/1590729.html</A></SPAN><BR>
			</DIV>
		</DIV>
	
		<DIV class="feedbackItem">
			<DIV class="feedbackListSubtitle">
				<DIV class="feedbackManage">
					　<A onclick="ReplyComment(&quot;一劍飄紅&quot;,1763217,&quot;6df4S/ZX+H6oMj8hc9xI6zOXxam7kuyeeaCUMgLZWkMXrf/NZn5euA==&quot;)" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#commentform">回复</A>　<A onclick="QuoteComment(1763217,&quot;6df4S/ZX+H6oMj8hc9xI6zOXxam7kuyeeaCUMgLZWkMXrf/NZn5euA==&quot;)" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#commentform">引用</A>　<A title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e4%b8%80%e5%8a%8d%e9%a3%84%e7%b4%85" target="_blank">查看</A>　<A id="Comments1_CommentList_ctl08_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl08$DeleteLink','')"></A>&nbsp;&nbsp;<A id="Comments1_CommentList_ctl08_EditLink" causesvalidation="False"></A>
				</DIV>
				<A href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#1763217">#9楼</A><A name="1763217" id="comment_anchor_1763217"></A>2010-02-09 09:00 | <A id="Comments1_CommentList_ctl08_NameLink" href="http://www.cnblogs.com/lxf120/" target="_blank">一劍飄紅</A>&nbsp;<A href="http://space.cnblogs.com/msg/send/%e4%b8%80%e5%8a%8d%e9%a3%84%e7%b4%85" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A>
			</DIV>
			<DIV class="feedbackCon">
				<SPAN id="comment_body_1763217" class="blog_comment_body">我的代码生成器,欢迎交流<BR><A href="http://www.cnblogs.com/lxf120" target="_blank">http://www.cnblogs.com/lxf120</A></SPAN><BR>
			</DIV>
		</DIV>
	
		<DIV class="feedbackItem">
			<DIV class="feedbackListSubtitle">
				<DIV class="feedbackManage">
					　<A onclick="ReplyComment(&quot;李天平&quot;,1789285,&quot;ZQNxruaqa3J6lJrNWUn7CtGYgaeJ5kekxo3Zc8HKQlCzs0Ih3D9voA==&quot;)" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#commentform">回复</A>　<A onclick="QuoteComment(1789285,&quot;ZQNxruaqa3J6lJrNWUn7CtGYgaeJ5kekxo3Zc8HKQlCzs0Ih3D9voA==&quot;)" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#commentform">引用</A>　<A title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e6%9d%8e%e5%a4%a9%e5%b9%b3" target="_blank">查看</A>　<A id="Comments1_CommentList_ctl09_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl09$DeleteLink','')"></A>&nbsp;&nbsp;<A id="Comments1_CommentList_ctl09_EditLink" causesvalidation="False"></A>
				</DIV>
				<A href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#1789285">#10楼</A><A name="1789285" id="comment_anchor_1789285"></A>2010-03-29 15:21 | <A id="Comments1_CommentList_ctl09_NameLink" href="http://www.cnblogs.com/ltp/" target="_blank">李天平</A>&nbsp;<A href="http://space.cnblogs.com/msg/send/%e6%9d%8e%e5%a4%a9%e5%b9%b3" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A>
			</DIV>
			<DIV class="feedbackCon">
				<SPAN id="comment_body_1789285" class="blog_comment_body">我来支持一下同姓兄弟!</SPAN><BR>
			</DIV>
		</DIV>
	
		<DIV class="feedbackItem">
			<DIV class="feedbackListSubtitle">
				<DIV class="feedbackManage">
					　<A onclick="ReplyComment(&quot;李天时&quot;,1789604,&quot;qccN+i2WxmbvBuCANDeM1kw+xk7cYrZbjuphcoWZjVtsc+SyQsgFlA==&quot;)" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#commentform">回复</A>　<A onclick="QuoteComment(1789604,&quot;qccN+i2WxmbvBuCANDeM1kw+xk7cYrZbjuphcoWZjVtsc+SyQsgFlA==&quot;)" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#commentform">引用</A>　<A title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e6%9d%8e%e5%a4%a9%e6%97%b6" target="_blank">查看</A>　<A id="Comments1_CommentList_ctl10_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl10$DeleteLink','')"></A>&nbsp;&nbsp;<A id="Comments1_CommentList_ctl10_EditLink" causesvalidation="False"></A>
				</DIV>
				<A href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#1789604">#11楼</A><A name="1789604" id="comment_anchor_1789604"></A>[<SPAN class="louzhu">楼主</SPAN>]2010-03-29 22:36 | <A id="Comments1_CommentList_ctl10_NameLink" href="http://www.cnblogs.com/lts8989/" target="_blank">李天时</A>&nbsp;<A href="http://space.cnblogs.com/msg/send/%e6%9d%8e%e5%a4%a9%e6%97%b6" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A>
			</DIV>
			<DIV class="feedbackCon">
				<SPAN id="comment_body_1789604" class="blog_comment_body"><A href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#1789285" title="查看所回复的评论">@</A>李天平<BR>偶像也看我的博客了，太兴奋了。最近正在找工作，感觉外面的公司对我做的这个代码生成器很感兴趣。刚刚买了你的书，只读了前面两章，感觉讲的全是找工作时候的笔试题。虽然我还没领会的借口与抽象类的真谛，但是读了您的书的前几页足以应付笔试。</SPAN><BR>
			</DIV>
		</DIV>
	
		<DIV class="feedbackItem">
			<DIV class="feedbackListSubtitle">
				<DIV class="feedbackManage">
					　<A onclick="ReplyComment(&quot;Jason Deign&quot;,1796515,&quot;RzzrRV+3iBjXU8nF3yG1EQmiuwsA9LikbaPl3CXSGx0SKq0J8q8bvA==&quot;)" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#commentform">回复</A>　<A onclick="QuoteComment(1796515,&quot;RzzrRV+3iBjXU8nF3yG1EQmiuwsA9LikbaPl3CXSGx0SKq0J8q8bvA==&quot;)" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#commentform">引用</A>　<A title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=Jason+Deign" target="_blank">查看</A>　<A id="Comments1_CommentList_ctl11_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl11$DeleteLink','')"></A>&nbsp;&nbsp;<A id="Comments1_CommentList_ctl11_EditLink" causesvalidation="False"></A>
				</DIV>
				<A href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#1796515">#12楼</A><A name="1796515" id="comment_anchor_1796515"></A>2010-04-08 15:46 | <A id="Comments1_CommentList_ctl11_NameLink" href="http://www.cnblogs.com/JasonDeignVip/" target="_blank">Jason Deign</A>&nbsp;<A href="http://space.cnblogs.com/msg/send/Jason+Deign" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A>
			</DIV>
			<DIV class="feedbackCon">
				<SPAN id="comment_body_1796515" class="blog_comment_body">不错哦，支持哥们，支持开源</SPAN><BR>
			</DIV>
		</DIV>
	
		<DIV class="feedbackItem">
			<DIV class="feedbackListSubtitle">
				<DIV class="feedbackManage">
					　<A onclick="ReplyComment(&quot;李天时&quot;,1796631,&quot;qccN+i2WxmbvBuCANDeM1kw+xk7cYrZbjuphcoWZjVtsc+SyQsgFlA==&quot;)" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#commentform">回复</A>　<A onclick="QuoteComment(1796631,&quot;qccN+i2WxmbvBuCANDeM1kw+xk7cYrZbjuphcoWZjVtsc+SyQsgFlA==&quot;)" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#commentform">引用</A>　<A title="查看该作者发表过的评论" href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e6%9d%8e%e5%a4%a9%e6%97%b6" target="_blank">查看</A>　<A id="Comments1_CommentList_ctl12_DeleteLink" href="javascript:__doPostBack('Comments1$CommentList$ctl12$DeleteLink','')"></A>&nbsp;&nbsp;<A id="Comments1_CommentList_ctl12_EditLink" causesvalidation="False"></A>
				</DIV>
				<A href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#1796631">#13楼</A><A name="1796631" id="comment_anchor_1796631"></A>[<SPAN class="louzhu">楼主</SPAN>]<A name="Post"></A>2010-04-08 17:38 | <A id="Comments1_CommentList_ctl12_NameLink" href="http://www.cnblogs.com/lts8989/" target="_blank">李天时</A>&nbsp;<A href="http://space.cnblogs.com/msg/send/%e6%9d%8e%e5%a4%a9%e6%97%b6" title="给此人发送站内短消息" class="sendMsg2This">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A>
			</DIV>
			<DIV class="feedbackCon">
				<SPAN id="comment_body_1796631" class="blog_comment_body"><A href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#1796515" title="查看所回复的评论">@</A>Jason Deign<BR>我就是想让每个人使用我的代码生成器的时候都能使用他们自己的代码模板。我在使用比人的代码生成器的时候遇到这个问题，我相信别人也会遇到相同的问题。</SPAN><BR>
			</DIV>
		</DIV>
	
<SCRIPT type="text/javascript">
    var commentAuthorHasChecked = false;
    var commentAuthorIsValid = false;
    var commentUrlIsValid = true;
    var commentEmailIsValid = true;
    var authenCodeHasChecked = false;
    var authenCodeIsValid = true;
    var hasLogined = false;
    
    function PostComment() {    
        
        var isValid = true;
        
        if($("#wrapAuthenCode").css("display")=="none"){
            ShowAuthenCode();
            $("#tip_AuthenCode").css("color","red");
            $("#tip_AuthenCode").html("请输入验证码！");
            isValid = false;
        }
        
        if(!hasLogined && !commentAuthorHasChecked){
            CheckAuthor();        
        }                
        if(!hasLogined && !commentAuthorIsValid){
            isValid = false;
        }
                       
        if(!authenCodeHasChecked){
            CheckAuthenCode();            
        }
        if(!authenCodeIsValid){
            isValid = false;
        }
        
        if(!hasLogined && !commentUrlIsValid){            
            isValid = false;
        }        
        if(!commentEmailIsValid){            
            isValid = false;
        }        
        if(!CheckCommentContent()){
            isValid = false;
        }    
        if(!isValid){
            return;
        }

        var content = $("#tbCommentBody").val();
        if(content.length>2000){
            alert("评论内容过长！不允许发布！");
            return;
        }     
        
        if(content.indexOf("　Ｅ　　　　　　　　　Ｅ　　　　　　　　　　Ｅ　　　　　　")>=0){
            alert("该内容不允许布！");
            return;
        }   
        
       if ($("#span_comment_posted").html()!='' && $("#span_comment_posted").html()==content){
            alert("该评论已发表过!");
            return;
        }
        
        $("#tip_comment").html("评论提交中...");
        $("#span_comment_posted").html(content);
        //content = content.replace("'", "\\'");
        var email = $("#tbCommentEmail").val();
        var authenNum = $("#tbAuthenCode").val();
        var authenId = $("#span_comment_test").html();
        var comment = {};
        comment.authenNum = authenNum;
        comment.authenId= authenId;
        comment.parentId = 0;
        comment.blogId = 0;
        comment.sourceUrl = '';
        comment.author = $("#tbCommentAuthor").val();
        comment.url = $("#tbCommentAuthorUrl").val();
        comment.authenCode = $("#tbAuthenCode").val();
        comment.email = email;
        comment.title = '';
        comment.content = content;
        comment.parentCommentId = $("#span_parentcomment_id").html();
        $.ajax({
            url: '/ws/CommentService.asmx/AddAnonymousComment',
            data: $.toJSON(comment),
            type: "post",
            dataType: "json",
            contentType: "application/json; charset=utf8",
            success: function(data) {
               if (data.d["IsSuccess"]) {
                    ShowCommentMsg("感谢您的回复:)");
                    //RereshComments2(comment.parentId);
                    $("#tbCommentBody").val('');
                    //$("#divCommentShow").html(data.d["ReturnData"]+content.replace(/\n/g,"<br/>")+"<br/><br/>");
                    $("#divCommentShow").html($("#divCommentShow").html()+data.d["ReturnData"]); 
                    $("#tip_AuthenCode").html('');
                    RefreshAuthenCode();
                    $("#tbAuthenCode").val("");                    
                    CommentNotify(data.d["CommentID"]);
                }
                else {
                    ShowCommentMsg(data.d["ReturnData"]);//"抱歉！评论提交失败！请与管理员联系。");
                    $("#span_comment_posted").html(''); 
                }
            },
            error: function(xhr) {
                ShowCommentMsg("抱歉！评论提交失败！请与管理员联系。");
                $("#span_comment_posted").html('');  
                //alert(xhr.responseText);
            }
        }
        );
    }
    
    function RefreshAuthenCode(){
        AjaxPost("/ws/CommentService.asmx/RefreshAuthenCode","{}",RefreshImg); 
        $("#lnkRereshAuthenCode").html("<span style='color:red'>刷新中...</span>");
        return false;
    }
    
    function RefreshImg(response){
       $("#imgAuthenCode").attr("src","/Modules/CaptchaImage/ValidCodeImage.aspx?id="+encodeURIComponent(response));
       $("#span_comment_test").html(response);
       $("#lnkRereshAuthenCode").html("看不清，换一个");
    }
    
    function ShowAuthenCode(){
        //if($("#wrapAuthenCode").css("display")=="none"){    
        //    AjaxPost("/ws/CommentService.asmx/RefreshAuthenCode","{}",ShowAuthenCodeOk);
        //}
        $("#wrapAuthenCode").show();      
    }
    
    function ShowAuthenCodeOk(response){
         UpdateAuthenCode();
         $("#tbAuthenCode").val("");
         $("#wrapAuthenCode").show();
         $("#tip_AuthenCode").html('');
    }  
 
    
    function CheckAuthor(isOnblur){
        commentAuthorHasChecked = true;
        var maxLength = 30;
        if($("#tbCommentAuthor").val().length == 0){
            $("#tip_author").html("请输入您的昵称！");
            commentAuthorIsValid = false;
            return false;
        }     
        else if($("#tbCommentAuthor").val().length > maxLength){
            $("#tip_author").html("昵称不允许超过" + maxLength + "个字符！");
            commentAuthorIsValid = false;
            return false;
        }
        else{
            //if(isOnblur){
                AjaxPost("/ws/CommentService.asmx/IsAuthorExist","{author:'"+$("#tbCommentAuthor").val()+"'}" ,OnCheckAuthorExist);
            //}
            //else{
            //    $("#tip_author").html("");
            //    commentAuthorIsValid = true;
            //}
            return true;
        }
   }
   
    function OnCheckAuthorExist(response){        
        if(!response){
            $("#tip_author").html("");
            commentAuthorIsValid = true;
        }
        else{
            $("#tip_author").html("该昵称已被使用，请更换昵称");
            commentAuthorIsValid = false;
        }
   }
   
    function CheckUrl(){
        var maxLength = 50;
        var url = $("#tbCommentAuthorUrl").val();
        
        if(url.length == 0){
            commentUrlIsValid = true;
            return true;
        }
        else if(url.length > maxLength){
            $("#tip_url").html("主页地址不允许超过" + maxLength + "个字符！");
            commentUrlIsValid = false;
            return false;
        }
        else if(url.indexOf("http://")!=0 || url.indexOf(".") < 0){
            $("#tip_url").html("主页地址要以“http://”开头");
            commentUrlIsValid = false;
            return false;
        }
        else{
            $("#tip_url").html("");
            commentUrlIsValid = true;
            return true;
        }
   }
   
   function CheckEmail(){
        var email = $("#tbCommentEmail").val();
        if(email.length>0){
            var regExp = new RegExp("\\w+@((\\w|\-)+\\.)+[a-z]{2,3}");
            if(!regExp.test(email)){
                $("#tip_email").html("请输入正确的邮件地址!");
                commentEmailIsValid = false;
            }
            else{
                commentEmailIsValid = true;
                 $("#tip_email").html("");
            }
        }
        else{
            commentEmailIsValid = true;
            $("#tip_email").html("");  
        }
   }
   
   function CheckAuthenCode(){
        authenCodeHasChecked = true;
        var num = $("#tbAuthenCode").val();
        var id = $("#span_comment_test").html();
        $("#tip_AuthenCode").css("color","red");
        if(num.length==0){
             authenCodeIsValid = false;
             $("#tip_AuthenCode").html("请输入验证码！");
             return;
        }
        else if(num.length!=4){
            authenCodeIsValid = false;
            $("#tip_AuthenCode").html("请输入四位数字！");
             return;
        }
        else if(new RegExp("(\d+)").test(num)){
            authenCodeIsValid = false;
            $("#tip_AuthenCode").html("请输入四位数字！");
             return;
        }
        else{
            AjaxPost("/ws/CommentService.asmx/CheckAuthenCode","{number:"+num+",id:'"+id+"'}", OnCheckAuthenCode);
        }
   }
   
   function OnCheckAuthenCode(response){
        if(response){
            $("#tip_AuthenCode").css("color","green");
            $("#tip_AuthenCode").html("验证码输入正确！");
            authenCodeIsValid = true;            
        }
        else{
            $("#tip_AuthenCode").css("color","red");
            $("#tip_AuthenCode").html("验证码输错啦！");
            RefreshAuthenCode();
            authenCodeIsValid = false;           
        }
   }
   
   function CheckCommentContent(){
    if($("#tbCommentBody").val().length==0){
        alert("请输入评论内容！");
        return false;
    }
    return true;
   }
    
</SCRIPT>
<DIV id="ctl05_comment_form" class="commentform">




<DIV id="ctl05_divLoginPannel">
<DIV class="login_tips">注册用户登录后才能发表评论，请 <A href="http://passport.cnblogs.com/login.aspx?ReturnUrl=http%3a%2f%2fwww.cnblogs.com%2flts8989%2farchive%2f2010%2f01%2f28%2f1658763.html%3flogin%3d1%23commentform" class="underline">登录</A> 或 <A href="http://passport.cnblogs.com/register.aspx?ReturnUrl=http%3a%2f%2fwww.cnblogs.com%2flts8989%2farchive%2f2010%2f01%2f28%2f1658763.html%23Bottom2" class="underline">注册</A>，<A href="http://www.cnblogs.com/" target="_blank">返回博客园首页</A>。</DIV>
</DIV>

<DIV class="itnews c_ad_block">
推荐链接：<BR>
<A href="http://job.cnblogs.com/offer/8237/" target="_blank" class="site_hot">沪江网诚聘中高级.NET程序员</A><BR>
<A href="http://job.cnblogs.com/offer/8301/" target="_blank">英孚教育诚聘.NET开发工程师</A><BR>
<A href="http://www.cnblogs.com/cmt/archive/2010/06/08/1753881.html" target="_blank">购买博客园2010T恤，留下2010年的纪念</A><BR>
<A href="http://space.cnblogs.com/q/" target="_blank">博客园程序员技术问答平台</A><BR>
<A href="http://news.cnblogs.com/" target="_blank">IT新闻</A>:<BR>

          ·  <A href="http://news.cnblogs.com/n/69395/" target="_blank">移动平台应用开发或成程序员财富新机遇</A><BR>
	
          ·  <A href="http://news.cnblogs.com/n/69394/" target="_blank">10款诺基亚最失败手机展示创新不足</A><BR>
	
          ·  <A href="http://news.cnblogs.com/n/69393/" target="_blank">微软Vista和苹果iPhone 4的10大相似之处</A><BR>
	
          ·  <A href="http://news.cnblogs.com/n/69391/" target="_blank">东拉西扯：2005那年</A><BR>
	
          ·  <A href="http://news.cnblogs.com/n/69390/" target="_blank">计算机世界报关于第28期封面报道的说明</A><BR>
	
</DIV>


<DIV class="c_ad_block">
<DIV style="margin-top:5px;">
<SCRIPT type="text/javascript">
    if (c_enable_dfp) {
        try {
            GA_googleFillSlot("cnblogs_blogpost_bottom");
        }
        catch (e) { }
    }
</SCRIPT><SCRIPT src="./自己写的代码生成器ltscode2.0 - lts8989 - 博客园_files/ads"></SCRIPT><DIV id="google_ads_div_cnblogs_blogpost_bottom">
<INS style="width: 300px; height: 250px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; display: inline-table; position: relative; "><INS style="width: 300px; height: 250px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; display: block; position: relative; "><IFRAME id="google_ads_iframe_cnblogs_blogpost_bottom" name="google_ads_iframe_cnblogs_blogpost_bottom" width="300" height="250" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; position: absolute; top: 0px; left: 0px; "></IFRAME></INS></INS></DIV>
<SCRIPT>GA_googleCreateDomIframe('google_ads_div_cnblogs_blogpost_bottom' ,'cnblogs_blogpost_bottom');</SCRIPT>
</DIV>
<DIV class="itnews c_ad_block" id="job_block">
<A href="http://kb.cnblogs.com/" target="_blank" title="程序员知识库"><B>知识库最新文章</B></A>:<BR>
<DIV id="kb_recent">

		<A href="http://kb.cnblogs.com/page/69392/" target="_blank">他们可以偷走你的创意，但无法获取真正的本质内涵</A><BR>
	
		<A href="http://kb.cnblogs.com/page/69327/" target="_blank">DOCTYPE元素详解</A><BR>
	
		<A href="http://kb.cnblogs.com/page/69386/" target="_blank">将Flash 嵌入WPF 程序</A><BR>
	
		<A href="http://kb.cnblogs.com/page/69349/" target="_blank">为什么我不适合搞编程</A><BR>
	
		<A href="http://kb.cnblogs.com/page/69350/" target="_blank">从.NET中委托写法的演变谈开去（下）：性能相关</A><BR>
	
</DIV>
</DIV>
</DIV>
<DIV class="c_ad_block">
<A href="http://www.feifanit.com.cn/productFlow.htm" target="_blank"><IMG src="./自己写的代码生成器ltscode2.0 - lts8989 - 博客园_files/e8_net_468x60.gif" alt=""></A>
</DIV>

<DIV id="site_nav_under" class="c_ad_block">
网站导航：<BR>
<A href="http://www.cnblogs.com/" target="_blank">博客园首页</A> &nbsp;<A href="http://news.cnblogs.com/" target="_blank">IT新闻</A> &nbsp;<A href="http://home.cnblogs.com/" target="_blank">个人主页</A> &nbsp;<A href="http://home.cnblogs.com/ing/" target="_blank">闪存</A> &nbsp;<A href="http://job.cnblogs.com/" target="_blank">程序员招聘</A> &nbsp;<A href="http://space.cnblogs.com/" target="_blank">社区</A> &nbsp;<A href="http://space.cnblogs.com/q/" target="_blank">博问</A> 
</DIV>
<DIV id="ad_under_comment2" class="c_ad_block">
<A href="http://www.china-pub.com/STATIC07/1005/zh_loving_100528.asp" target="_blank"><IMG src="./自己写的代码生成器ltscode2.0 - lts8989 - 博客园_files/china_pub_20100610.gif" alt="" style="border:0px;"></A><BR>
<A href="http://www.china-pub.com/itbook/" target="_blank">China-pub 计算机图书网上专卖店！6.5万品种2-8折！</A><BR>
<A href="http://www.china-pub.com/static07/0901/zh_jueba_090121.asp" target="_blank">China-Pub 计算机绝版图书按需印刷服务</A><BR>
</DIV>

<DIV id="relative_search"><BR><B>相关搜索:</B><BR> <A href="http://zzk.cnblogs.com/s?w=C%23" target="_blank">C#</A> <A href="http://zzk.cnblogs.com/s?w=%e4%bb%a3%e7%a0%81%e7%94%9f%e6%88%90%e5%99%a8" target="_blank">代码生成器</A> <A href="http://zzk.cnblogs.com/s?w=%e8%87%aa%e5%ae%9a%e4%b9%89%e6%a8%a1%e6%9d%bf" target="_blank">自定义模板</A> <A href="http://zzk.cnblogs.com/s?w=ltscode" target="_blank">ltscode</A> </DIV><DIV id="kb_link"><BR><B>最简洁阅读版式：</B><BR> <A href="http://archive.cnblogs.com/a/1658763/">自己写的代码生成器ltscode2.0</A></DIV>





</DIV>


				
		</DIV><!--end: hui-main hui-b -->
	</DIV><!--end: hui-main -->
	<DIV class="hui-b"> 
	<DIV id="sideBarMain">
			
<!--done-->
<DIV class="newsItem">
<H3 class="catListTitle">公告</H3>
	<DIV id="profile_block">粉丝 - 1<BR>关注 - 1<BR><A href="http://home.cnblogs.com/lts8989/" target="_blank">我的主页</A>&nbsp; <A href="http://home.cnblogs.com/lts8989/detail/" target="_blank">个人资料</A><BR><A href="http://home.cnblogs.com/lts8989/ing/" target="_blank">我的闪存</A>&nbsp; <A href="http://space.cnblogs.com/msg/send/%e6%9d%8e%e5%a4%a9%e6%97%b6" target="_blank">发短消息</A></DIV>
</DIV>

			<DIV id="calendar"><TABLE id="Calendar1_entryCal" class="Cal" cellspacing="0" cellpadding="0" title="Calendar" border="0">
	<TBODY><TR><TD colspan="7"><TABLE class="CalTitle" cellspacing="0" border="0">
		<TBODY><TR><TD class="CalNextPrev"><A href="javascript:__doPostBack('Calendar1$entryCal','V3622')" style="color:Black" title="Go to the previous month">&lt;</A></TD><TD align="center">2010年1月</TD><TD class="CalNextPrev" align="right"><A href="javascript:__doPostBack('Calendar1$entryCal','V3684')" style="color:Black" title="Go to the next month">&gt;</A></TD></TR>
	</TBODY></TABLE></TD></TR><TR><TH class="CalDayHeader" align="center" abbr="日" scope="col">日</TH><TH class="CalDayHeader" align="center" abbr="一" scope="col">一</TH><TH class="CalDayHeader" align="center" abbr="二" scope="col">二</TH><TH class="CalDayHeader" align="center" abbr="三" scope="col">三</TH><TH class="CalDayHeader" align="center" abbr="四" scope="col">四</TH><TH class="CalDayHeader" align="center" abbr="五" scope="col">五</TH><TH class="CalDayHeader" align="center" abbr="六" scope="col">六</TH></TR><TR><TD class="CalOtherMonthDay" align="center">27</TD><TD class="CalOtherMonthDay" align="center">28</TD><TD class="CalOtherMonthDay" align="center">29</TD><TD class="CalOtherMonthDay" align="center">30</TD><TD class="CalOtherMonthDay" align="center">31</TD><TD align="center">1</TD><TD class="CalWeekendDay" align="center">2</TD></TR><TR><TD class="CalWeekendDay" align="center">3</TD><TD align="center">4</TD><TD align="center">5</TD><TD align="center">6</TD><TD align="center">7</TD><TD align="center">8</TD><TD class="CalWeekendDay" align="center">9</TD></TR><TR><TD class="CalWeekendDay" align="center">10</TD><TD align="center">11</TD><TD align="center">12</TD><TD align="center">13</TD><TD align="center">14</TD><TD align="center">15</TD><TD class="CalWeekendDay" align="center">16</TD></TR><TR><TD class="CalWeekendDay" align="center">17</TD><TD align="center">18</TD><TD align="center">19</TD><TD align="center">20</TD><TD align="center">21</TD><TD align="center">22</TD><TD class="CalWeekendDay" align="center">23</TD></TR><TR><TD class="CalWeekendDay" align="center">24</TD><TD align="center">25</TD><TD align="center">26</TD><TD align="center">27</TD><TD align="center"><A href="http://www.cnblogs.com/lts8989/archive/2010/1/28.html"><U>28</U></A></TD><TD align="center">29</TD><TD class="CalWeekendDay" align="center">30</TD></TR><TR><TD class="CalWeekendDay" align="center">31</TD><TD class="CalOtherMonthDay" align="center">1</TD><TD class="CalOtherMonthDay" align="center">2</TD><TD class="CalOtherMonthDay" align="center">3</TD><TD class="CalOtherMonthDay" align="center">4</TD><TD class="CalOtherMonthDay" align="center">5</TD><TD class="CalOtherMonthDay" align="center">6</TD></TR>
</TBODY></TABLE>
</DIV>
			
			<DIV id="leftcontentcontainer">
				
<SCRIPT type="text/javascript">
var blogapp = 'lts8989';
</SCRIPT>
<DIV class="mySearch">
<H3 class="catListTitle">搜索</H3>

<DIV class="div_my_zzk"><INPUT type="text" id="q" onkeydown="return zzk_go_enter(event);" class="input_my_zzk">&nbsp;<INPUT onclick="zzk_go()" type="button" value="找找看" id="btnZzk" class="btn_my_zzk"></DIV>

<DIV class="div_my_zzk"><INPUT type="text" name="google_q" id="google_q" onkeydown="return google_go_enter(event)" class="input_my_zzk">&nbsp;<INPUT onclick="google_go()" type="button" value="谷歌搜索" class="btn_my_zzk"></DIV>

</DIV>
<DIV class="catListLink">
<H3 class="catListTitle">常用链接</H3>
<UL>

		<LI><A id="SingleColumn1_ctl02_rptMainLinks_ctl00_lnkLinkItem" href="http://www.cnblogs.com/lts8989/MyPosts.html">我的随笔</A></LI>
	
		<LI><A id="SingleColumn1_ctl02_rptMainLinks_ctl01_lnkLinkItem" href="http://home.cnblogs.com/lts8989/">我的空间</A></LI>
	
		<LI><A id="SingleColumn1_ctl02_rptMainLinks_ctl02_lnkLinkItem" href="http://space.cnblogs.com/msg/recent">我的短信</A></LI>
	
		<LI><A id="SingleColumn1_ctl02_rptMainLinks_ctl03_lnkLinkItem" href="http://www.cnblogs.com/lts8989/MyComments.html">我的评论</A></LI>
	
<LI><A id="itemListLink" onclick="this.blur();WarpClass(&#39;itemListLink&#39;, &#39;itemListLin_con&#39;);return false;" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#">更多链接</A></LI>
</UL>
<DIV id="itemListLin_con" style="display:none;">
<UL>

		<LI><A id="SingleColumn1_ctl02_repeaterLinks_ctl00_lnkLinkItem" title="我发表过评论的随笔" href="http://www.cnblogs.com/lts8989/OtherPosts.html">我的参与</A></LI>
	
		<LI><A id="SingleColumn1_ctl02_repeaterLinks_ctl01_lnkLinkItem" href="http://www.cnblogs.com/lts8989/MyNews.html">我的新闻</A></LI>
	
		<LI><A id="SingleColumn1_ctl02_repeaterLinks_ctl02_lnkLinkItem" href="http://www.cnblogs.com/lts8989/RecentComments.html">最新评论</A></LI>
	
		<LI><A id="SingleColumn1_ctl02_repeaterLinks_ctl03_lnkLinkItem" href="http://www.cnblogs.com/lts8989/tag/">我的标签</A></LI>
	
</UL>
</DIV>
</DIV>

<DIV class="catListTag">
<H3 class="catListTitle">我的标签</H3>
<UL>
<LI><A href="http://www.cnblogs.com/lts8989/tag/C%23/">C#(4)</A></LI><LI><A href="http://www.cnblogs.com/lts8989/tag/%ef%bf%a5net/">.net(3)</A></LI><LI><A href="http://www.cnblogs.com/lts8989/tag/%e4%bb%a3%e7%a0%81%e7%94%9f%e6%88%90%e5%99%a8/">代码生成器(2)</A></LI><LI><A href="http://www.cnblogs.com/lts8989/tag/%e8%87%aa%e5%ae%9a%e4%b9%89%e6%a8%a1%e6%9d%bf/">自定义模板(1)</A></LI><LI><A href="http://www.cnblogs.com/lts8989/tag/ltscode/">ltscode(1)</A></LI><LI><A href="http://www.cnblogs.com/lts8989/tag/Silverlight4/">Silverlight4(1)</A></LI><LI><A href="http://www.cnblogs.com/lts8989/tag/%e5%ba%94%e8%81%98/">应聘(1)</A></LI><LI><A href="http://www.cnblogs.com/lts8989/tag/%e6%b1%82%e8%81%8c/">求职(1)</A></LI><LI><A href="http://www.cnblogs.com/lts8989/tag/js/">js(1)</A></LI><LI><A href="http://www.cnblogs.com/lts8989/tag/%e6%97%a5%e5%8e%86/">日历(1)</A></LI>
</UL>
</DIV>
<DIV class="catListPostArchive">
<H3 class="catListTitle">随笔档案</H3>

<UL>

<LI><A id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl01_Link" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#" onclick="return open_link(&#39;http://www.cnblogs.com/lts8989/archive/2010/06.html&#39;);">2010年6月 (2)</A> </LI>

<LI><A id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl02_Link" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#" onclick="return open_link(&#39;http://www.cnblogs.com/lts8989/archive/2010/04.html&#39;);">2010年4月 (1)</A> </LI>

<LI><A id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl03_Link" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#" onclick="return open_link(&#39;http://www.cnblogs.com/lts8989/archive/2010/01.html&#39;);">2010年1月 (1)</A> </LI>

<LI><A id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl04_Link" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#" onclick="return open_link(&#39;http://www.cnblogs.com/lts8989/archive/2009/11.html&#39;);">2009年11月 (1)</A> </LI>

<LI><A id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl05_Link" href="http://www.cnblogs.com/lts8989/archive/2010/01/28/1658763.html#" onclick="return open_link(&#39;http://www.cnblogs.com/lts8989/archive/2009/02.html&#39;);">2009年2月 (1)</A> </LI>

</UL>

</DIV>



<DIV class="catListComment">
<H3 class="catListTitle">最新评论<A id="SingleColumn1__a9a60d_RSSHyperlink1" title="RSS订阅最最新评论" href="http://www.cnblogs.com/lts8989/CommentsRSS.aspx"><IMG title="RSS订阅最最新评论" src="./自己写的代码生成器ltscode2.0 - lts8989 - 博客园_files/xml.gif" style="border-width:0px;"></A></H3>

	
			<DIV class="divRecentCommentAticle">
				<A id="SingleColumn1__a9a60d_CommentList_ctl00_Hyperlink2" class="listitem" href="http://www.cnblogs.com/lts8989/archive/2010/06/29/1767241.html#1861681">1.&nbsp;Re:代码生成器ltscode2.1</A>
			</DIV>
			<DIV class="divRecentComment">
				那我就下载下来 看看 两个代码生成器 
有何区别和优秀之处 (陈泽富)
			</DIV>		
		
			<DIV class="divRecentCommentAticle">
				<A id="SingleColumn1__a9a60d_CommentList_ctl01_Hyperlink2" class="listitem" href="http://www.cnblogs.com/lts8989/archive/2010/06/29/1767241.html#1861638">2.&nbsp;Re:代码生成器ltscode2.1</A>
			</DIV>
			<DIV class="divRecentComment">
				@陈泽富
这个是误会，名字知识凑巧而已，我也感觉动软的代码生成器写的很好，但是他的模板不能修改。所以我就想写一款可以修改代码模板的生成器。 (李天时)
			</DIV>		
		
			<DIV class="divRecentCommentAticle">
				<A id="SingleColumn1__a9a60d_CommentList_ctl02_Hyperlink2" class="listitem" href="http://www.cnblogs.com/lts8989/archive/2010/06/29/1767241.html#1861379">3.&nbsp;Re:代码生成器ltscode2.1</A>
			</DIV>
			<DIV class="divRecentComment">
				不过  
作为菜鸟..有义务学习学习 (陈泽富)
			</DIV>		
		
			<DIV class="divRecentCommentAticle">
				<A id="SingleColumn1__a9a60d_CommentList_ctl03_Hyperlink2" class="listitem" href="http://www.cnblogs.com/lts8989/archive/2010/06/29/1767241.html#1861378">4.&nbsp;Re:代码生成器ltscode2.1</A>
			</DIV>
			<DIV class="divRecentComment">
				李天时? 
我两年前一直在用 
李天平的代码生成器
你也搞代码生成器
你们是兄弟? (陈泽富)
			</DIV>		
		
			<DIV class="divRecentCommentAticle">
				<A id="SingleColumn1__a9a60d_CommentList_ctl04_Hyperlink2" class="listitem" href="http://www.cnblogs.com/lts8989/archive/2010/06/25/1765249.html#1858222">5.&nbsp;Re:silverlight4学习中解决的问题</A>
			</DIV>
			<DIV class="divRecentComment">
				@李天时
我的VS也偶尔出现“灵异”时间，断点停不了，编译了没反应。。重启一切OK。。。更多时候是自己出问题。慢慢学习实践吧～～ (撞破南墙)
			</DIV>		
		
</DIV>

<DIV class="catListView">
<H3 class="catListTitle">阅读排行榜</H3>
	
			<UL>
		
			<LI>
				<A id="SingleColumn1_ctl06_TopList_ctl01_Hyperlink1" href="http://www.cnblogs.com/lts8989/archive/2010/04/08/1707045.html">1.&nbsp;2010面试攻略(3111)</A>
			</LI>
		
			<LI>
				<A id="SingleColumn1_ctl06_TopList_ctl02_Hyperlink1" href="./自己写的代码生成器ltscode2.0 - lts8989 - 博客园_files/自己写的代码生成器ltscode2.0 - lts8989 - 博客园.htm">2.&nbsp;自己写的代码生成器ltscode2.0(1596)</A>
			</LI>
		
			<LI>
				<A id="SingleColumn1_ctl06_TopList_ctl03_Hyperlink1" href="http://www.cnblogs.com/lts8989/archive/2010/06/25/1765249.html">3.&nbsp;silverlight4学习中解决的问题(1460)</A>
			</LI>
		
			<LI>
				<A id="SingleColumn1_ctl06_TopList_ctl04_Hyperlink1" href="http://www.cnblogs.com/lts8989/archive/2010/06/29/1767241.html">4.&nbsp;代码生成器ltscode2.1(633)</A>
			</LI>
		
			<LI>
				<A id="SingleColumn1_ctl06_TopList_ctl05_Hyperlink1" href="http://www.cnblogs.com/lts8989/archive/2009/11/17/1604726.html">5.&nbsp;日历JS代码(200)</A>
			</LI>
		
			</UL>
		
</DIV>

<DIV class="catListFeedback">
<H3 class="catListTitle">评论排行榜</H3>
	
			<UL>
		
			<LI>
				<A id="SingleColumn1_ctl07_TopList_ctl01_Hyperlink1" href="http://www.cnblogs.com/lts8989/archive/2010/04/08/1707045.html">1.&nbsp;2010面试攻略(27)</A>
			</LI>
		
			<LI>
				<A id="SingleColumn1_ctl07_TopList_ctl02_Hyperlink1" href="http://www.cnblogs.com/lts8989/archive/2010/06/25/1765249.html">2.&nbsp;silverlight4学习中解决的问题(14)</A>
			</LI>
		
			<LI>
				<A id="SingleColumn1_ctl07_TopList_ctl03_Hyperlink1" href="./自己写的代码生成器ltscode2.0 - lts8989 - 博客园_files/自己写的代码生成器ltscode2.0 - lts8989 - 博客园.htm">3.&nbsp;自己写的代码生成器ltscode2.0(13)</A>
			</LI>
		
			<LI>
				<A id="SingleColumn1_ctl07_TopList_ctl04_Hyperlink1" href="http://www.cnblogs.com/lts8989/archive/2010/06/29/1767241.html">4.&nbsp;代码生成器ltscode2.1(4)</A>
			</LI>
		
			<LI>
				<A id="SingleColumn1_ctl07_TopList_ctl05_Hyperlink1" href="http://www.cnblogs.com/lts8989/archive/2009/11/17/1604726.html">5.&nbsp;日历JS代码(0)</A>
			</LI>
		
			</UL>
		
</DIV>

			</DIV>
			
		</DIV><!--end: sideBarMain -->
	</DIV><!--end: hui-b -->
	<DIV class="clear"></DIV>
</DIV>

<DIV id="footer" class="hui-d3">
		
<!--done-->
Copyright ©2010 李天时
</DIV><!--end: footer -->

</DIV><!--end: home 自定义的最大容器 -->
    </FORM>
	<SCRIPT type="text/javascript" src="./自己写的代码生成器ltscode2.0 - lts8989 - 博客园_files/shCore.js"></SCRIPT>
	<SCRIPT type="text/javascript" src="./自己写的代码生成器ltscode2.0 - lts8989 - 博客园_files/shLanguage.js"></SCRIPT>
    <SCRIPT type="text/javascript">
        try {
            SyntaxHighlighter.config.clipboardSwf = 'http://common.cnblogs.com/flash/clipboard.swf';
            SyntaxHighlighter.all();
        } catch (e) { }
    </SCRIPT>  
    <SCRIPT type="text/javascript" src="./自己写的代码生成器ltscode2.0 - lts8989 - 博客园_files/ShowHidden.js"></SCRIPT>
    
    <SCRIPT type="text/javascript">
        var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
        document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </SCRIPT><SCRIPT src="./自己写的代码生成器ltscode2.0 - lts8989 - 博客园_files/ga.js" type="text/javascript"></SCRIPT>
    <SCRIPT type="text/javascript">
        try {
            var pageTracker = _gat._getTracker("UA-476124-1");
            pageTracker._trackPageview();
        } catch (err) { }</SCRIPT>


</BODY></HTML>